package com.ashley.day_09;

/**
 * @Author ashley
 * @Date 2019/8/1 10:51
 */
public class ValueTransferTest1 {
    public static void main(String[] args) {

        int m = 10;
        int n = 20;

        System.out.println("m =" + m + ", n = " + n);

        ValueTransferTest1 test = new ValueTransferTest1();
        test.swap(m,n);
        System.out.println("m =" + m + ", n = " + n);

    }
    public void swap(int m,int n){
        int temp = m;
        m = n;
        n = temp;
//        System.out.println("m =" + m + ", n = " + n);
    }
}
